home *** CD-ROM | disk | FTP | other *** search
/ C/C++ Users Group Library 1996 July / C-C++ Users Group Library July 1996.iso / vol_300 / 359_11 / patch5.000 / EMU387_E74.CC < prev    next >
C/C++ Source or Header  |  1991-09-11  |  484b  |  31 lines

  1. #include "emu.h"
  2. #include "rmov.h"
  3.  
  4. void fstsw_ax()
  5. {
  6.   status_word &= ~SW_TOP;
  7.   status_word |= (top&7) * SW_TOPS;
  8.   eax &= 0xffff0000;
  9.   eax |= status_word;
  10. }
  11.  
  12. FUNC emu_74_table[] = {
  13.   fstsw_ax, emu_bad, emu_bad, emu_bad, emu_bad, emu_bad, emu_bad, emu_bad
  14. };
  15.  
  16. void emu_74()
  17. {
  18.   if (modrm > 0277)
  19.   {
  20.     (emu_74_table[modrm&7])();
  21.   }
  22.   else
  23.   {
  24.     // fbld m80dec
  25.     if (full())
  26.       return;
  27.     top--;
  28.     r_mov((char *)get_modrm(), st());
  29.   }
  30. }
  31.